// SelectDlg.cpp : implementation file
//

#include "stdafx.h"
#include "MFCTest.h"
#include "SelectDlg.h"


// CSelectDlg dialog

IMPLEMENT_DYNAMIC(CSelectDlg, CDialog)

CSelectDlg::CSelectDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSelectDlg::IDD, pParent)
{

}

CSelectDlg::~CSelectDlg()
{
}

void CSelectDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CSelectDlg, CDialog)
	ON_BN_CLICKED(IDC_SIMPLE, &CSelectDlg::OnBnClickedSimple)
	ON_BN_CLICKED(IDC_MEDIUM, &CSelectDlg::OnBnClickedMedium)
	ON_BN_CLICKED(IDC_HARD, &CSelectDlg::OnBnClickedHard)
END_MESSAGE_MAP()


// CSelectDlg message handlers

void CSelectDlg::OnBnClickedSimple()
{
	// TODO: Add your control notification handler code here
	m_type = CMFCTestDlg::SIMPLE;
	CDialog::OnOK();
}

void CSelectDlg::OnBnClickedMedium()
{
	// TODO: Add your control notification handler code here
	m_type = CMFCTestDlg::MEDIUM;
	CDialog::OnOK();
}

void CSelectDlg::OnBnClickedHard()
{
	// TODO: Add your control notification handler code here
	m_type = CMFCTestDlg::HARD;
	CDialog::OnOK();
}
